package cn.edu.sasu.domain.dto;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class LoginFormDTO implements Serializable {
     @NotBlank(message = "用户名不能为空")
     private String username;
     @NotBlank(message = "密码不能为空")
     private String password;
     @Pattern(regexp = "^[A-Za-z0-9]{4}$",message = "验证码只能为6位的数字与字母组成")
     private String vercode;

}
